package com.cn.service.impl;

import java.util.List;

import com.cn.dao.NewsDao;
import com.cn.dao.impl.NewDaoImpl;
import com.cn.domain.News;
import com.cn.service.NewsService;

public class NewsServiceImpl implements NewsService {
	private NewsDao newsDao;
	public NewsServiceImpl() {
		newsDao=new NewDaoImpl();
	}
	//显示新闻信息
	//按照名字查找用户名字,email,identity,tel
	/* (non-Javadoc)
	 * @see com.cn.service.impl.NewsService#queryAllNews()
	 */
	public List<News> queryAllNews(){
		return newsDao.queryAllNews();
	}
	//根据新闻ID号进行阅读新闻
	@Override
	public News queryNewsById(String id) {
		return newsDao.queryNewsById(id);
	}
}
